<!DOCTYPE html>



  


<html class="theme-next pisces use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<!-- modify by zhangwei -->
<!-- 百度站长 -->
<meta name="baidu-site-verification" content="MdPKZBgY0U">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">



  <meta name="google-site-verification" content="8DKRuNxJDPU2k6cNyVhLe_eSqGk-R8oiYk8iKMg5gwI">














  
  
  <link href="/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/uploads/favicon.ico?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/uploads/favicon.ico?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/uploads/favicon.ico?v=5.1.4">


  <link rel="mask-icon" href="/uploads/favicon.ico?v=5.1.4" color="#222">





  <meta name="keywords" content="GitHub,Hexo,">





  <link rel="alternate" href="/atom.xml" title="班德尔城" type="application/atom+xml">






<meta name="description" content="工具安装安装的工具：Git，Nodejs，Hexo，可选安装：TortoiseGit、GitHub Desktop，建议下载使用VPN代理，已安装可略过">
<meta name="keywords" content="GitHub,Hexo">
<meta property="og:type" content="article">
<meta property="og:title" content="Windows上GitHub+Hexo搭建个人博客">
<meta property="og:url" content="https://tiimor.cn/Windows上GitHub+Hexo搭建个人博客/index.html">
<meta property="og:site_name" content="班德尔城">
<meta property="og:description" content="工具安装安装的工具：Git，Nodejs，Hexo，可选安装：TortoiseGit、GitHub Desktop，建议下载使用VPN代理，已安装可略过">
<meta property="og:locale" content="zh-Hans">
<meta property="og:image" content="http://cdn.tiimor.cn/images/GitHub+Hexo.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/Git.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/Nodejs.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/GitHub%E4%B8%BB%E9%A1%B5.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E4%BB%93%E5%BA%93%E5%88%9B%E5%BB%BA.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E4%BB%93%E5%BA%93%E5%91%BD%E5%90%8D.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/SSH%E8%BF%9E%E6%8E%A5.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/SSH%E5%AF%86%E9%92%A5%E5%88%9B%E5%BB%BA.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E4%BB%93%E5%BA%93%E7%9A%84DeployKey.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E6%B7%BB%E5%8A%A0DeployKeys.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E5%B7%A5%E7%A8%8B%E7%9B%AE%E5%BD%95.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E9%BB%98%E8%AE%A4%E9%A6%96%E9%A1%B5.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E9%BB%98%E8%AE%A4%E4%B8%BB%E9%A2%98HelloWorld%E5%8D%9A%E5%AE%A2.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%88%9B%E5%BB%BA%E6%A0%87%E7%AD%BE.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/NexT%E4%B8%BB%E9%A2%98%E5%8D%9A%E5%AE%A2.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/RSS%E8%AE%A2%E9%98%85.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E5%AF%B9%E8%B1%A1%E5%AD%98%E5%82%A8%E5%88%9B%E5%BB%BA.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E4%B8%8A%E4%BC%A0%E5%9B%BE%E7%89%87.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E5%BC%95%E7%94%A8%E5%9B%BE%E7%89%87%E5%A4%96%E9%93%BE.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/cmd%E7%9A%84ping%E5%91%BD%E4%BB%A4.png">
<meta property="og:image" content="http://cdn.tiimor.cn/images/%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90.png">
<meta property="og:updated_time" content="2019-03-17T06:47:42.384Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Windows上GitHub+Hexo搭建个人博客">
<meta name="twitter:description" content="工具安装安装的工具：Git，Nodejs，Hexo，可选安装：TortoiseGit、GitHub Desktop，建议下载使用VPN代理，已安装可略过">
<meta name="twitter:image" content="http://cdn.tiimor.cn/images/GitHub+Hexo.png">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/',
    scheme: 'Pisces',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":true,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '3AUIZWGETM',
      apiKey: '5fcd6d51d892fffe3480c5b37f5fd4fa',
      indexName: 'Tiimor',
      hits: {"per_page":8},
      labels: {"input_placeholder":"搜索","hits_empty":"未发现与「${query}」相关的内容","hits_stats":"${hits} 条相关条目，使用了 ${time} 毫秒"}
    }
  };
</script>



  <link rel="canonical" href="https://tiimor.cn/Windows上GitHub+Hexo搭建个人博客/">





  <title>Windows上GitHub+Hexo搭建个人博客 | 班德尔城</title>
  




<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-96457043-1', 'auto');
  ga('send', 'pageview');
</script>


  <script type="text/javascript">
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?abb97f8f68c9e5eb2217d3111c64e696";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

  <!-- modify by zhangwei -->
  <!-- 下雪的动画 -->
  <div class="canvas-snow">
    <canvas id="canvas" style="margin: 0;  padding: 0;top:0; left: 0; right: 0; background: transparent; position: absolute;" width="1366" height="105"></canvas>
      <script>

      var canvasBgImg = {
        start: function () {
          this.canvas = document.getElementById('canvas')
          this.ctx = this.canvas.getContext("2d")
          this.canvas.width = window.innerWidth
          this.canvas.height = 105
          this.starList = []
        },
        drawLine: function (ctx, x1, y1, x2, y2) {
          ctx.beginPath()
          ctx.strokeStyle = '#ffffff'
          ctx.lineTo(x1, y1)
          ctx.lineTo(x2, y2)
          ctx.stroke()
        },
        canvasSingleSnow: function (snowSize) {
          var singleSnow = document.createElement('canvas'),
            ctxSingle = singleSnow.getContext('2d')
          singleSnow.setAttribute('width', snowSize * 2)
          singleSnow.setAttribute('height', snowSize * 2)
          for (var i = 0; i < 6; i++) {
            ctxSingle.save()
            ctxSingle.translate(snowSize, snowSize)
            ctxSingle.rotate(Math.PI * 2 * i / 6)
            this.drawLine(ctxSingle, 0, 0, snowSize, 0)
            ctxSingle.restore()
          }
          return singleSnow
        },
        canvasAllSnow: function (centerSnow) {
          var canvasSnow = document.createElement('canvas'),
            ctxSnow = canvasSnow.getContext('2d'),
            bigSnow = this.canvasSingleSnow(centerSnow),
            smallSnow = this.canvasSingleSnow(centerSnow / 3),
            sizeSnow = centerSnow * 3 / 5,
            rSnow = centerSnow - sizeSnow / 2
          canvasSnow.setAttribute('width', centerSnow * 2)
          canvasSnow.setAttribute('height', centerSnow * 2)
          ctxSnow.drawImage(bigSnow, 0, 0, bigSnow.width, bigSnow.height, 0, 0, centerSnow * 2, centerSnow * 2)
          for (var i = 0; i < 6; i++) {
            ctxSnow.save()
            ctxSnow.translate(centerSnow, centerSnow)
            ctxSnow.rotate(Math.PI * 2 * i / 6)
            ctxSnow.drawImage(smallSnow, 0, 0, smallSnow.width, smallSnow.height, rSnow - sizeSnow / 2,
              -sizeSnow / 2, sizeSnow, sizeSnow)
            ctxSnow.restore()
          }
          return canvasSnow
        },
        init: function () {
          this.start()
          for (var i = 0; i < 75; i++) {
            this.starList.push({
              drawFunc: this.canvasAllSnow(15),
              width: Math.random() * this.canvas.width,
              height: Math.random() * this.canvas.height,
              speed: Math.random() * 1.5 + .5,
              scale: Math.random() * 12 + 5,
              angel: 0
            })
          }
          var self = this,
            loop = function () {
              self.ctx.clearRect(0, 0, self.canvas.width, self.canvas.width)
              for (var i = 0; i < 75; i++) {
                self.ctx.save()
                self.starList[i].height = self.starList[i].height + self.starList[i].speed
                self.starList[i].angel += 2
                self.ctx.translate(self.starList[i].width, self.starList[i].height)
                self.ctx.rotate(self.starList[i].angel * Math.PI / 360)
                self.ctx.translate(-self.starList[i].width, -self.starList[i].height)
                self.ctx.drawImage(self.starList[i].drawFunc, 0, 0,
                  self.starList[i].drawFunc.width, self.starList[i].drawFunc.height,
                  self.starList[i].width - self.starList[i].scale / 2,
                  self.starList[i].height - self.starList[i].scale / 2,
                  self.starList[i].scale, self.starList[i].scale)
                if (self.starList[i].height > self.canvas.height) {
                  self.starList[i] = Object.assign(self.starList[i], {
                    height: -self.starList[i].scale,
                    width: Math.random() * this.canvas.width
                  })
                }
                self.ctx.restore()
              }
              requestAnimationFrame(loop)
            }
          requestAnimationFrame(loop)
        }
      }
      canvasBgImg.init()
      </script>

    </div>


    <div class="custom-logo-site-title">
      <a href="/" class="brand" rel="start">
        <!-- modify by zhangwei -->
        <!-- 圣诞帽 -->
        <img src="/uploads/santa-hat.png" id="santa" style="height: 41px; position: absolute; left: -40px; top: -20px; transform: rotate(-45deg); z-index: 9000;">

        <span class="logo-line-before"><i></i></span>
        <span class="site-title">班德尔城</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle">微笑，简单，奋发</p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-guestbook">
          <a href="/guestbook" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-send"></i> <br>
            
            留言
          </a>
        </li>
      
        
        <li class="menu-item menu-item-favourite">
          <a href="/favourite" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-bookmark"></i> <br>
            
            收藏
          </a>
        </li>
      

      
        <li class="menu-item menu-item-search">
          
            <a href="javascript:;" class="popup-trigger">
          
            
              <i class="menu-item-icon fa fa-search fa-fw"></i> <br>
            
            搜索
          </a>
        </li>
      
    </ul>
  

  
    <div class="site-search">
      
  
  <div class="algolia-popup popup search-popup">
    <div class="algolia-search">
      <div class="algolia-search-input-icon">
        <i class="fa fa-search"></i>
      </div>
      <div class="algolia-search-input" id="algolia-search-input"></div>
    </div>

    <div class="algolia-results">
      <div id="algolia-stats"></div>
      <div id="algolia-hits"></div>
      <div id="algolia-pagination" class="algolia-pagination"></div>
    </div>

    <span class="popup-btn-close">
      <i class="fa fa-times-circle"></i>
    </span>
  </div>




    </div>
  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://tiimor.cn/Windows上GitHub+Hexo搭建个人博客/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="Tiimor">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/uploads/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="班德尔城">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">Windows上GitHub+Hexo搭建个人博客</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2017-03-18T21:10:59+08:00">
                2017-03-18
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/好好学习/" itemprop="url" rel="index">
                    <span itemprop="name">好好学习</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
              <span class="post-comments-count">
                <span class="post-meta-divider">|</span>
                <span class="post-meta-item-icon">
                  <i class="fa fa-comment-o"></i>
                </span>
                <a href="/Windows上GitHub+Hexo搭建个人博客/#comments" itemprop="discussionUrl">
                  <span class="post-comments-count gitment-comments-count" data-xid="/Windows上GitHub+Hexo搭建个人博客/" itemprop="commentsCount"></span>
                </a>
              </span>
            
          

          
          
             <span id="/Windows上GitHub+Hexo搭建个人博客/" class="leancloud_visitors" data-flag-title="Windows上GitHub+Hexo搭建个人博客">
               <span class="post-meta-divider">|</span>
               <!-- modify by zhangwei -->
               <!-- 去掉阅读的眼睛图标，阅读次数改为℃ -->
			   
                 <span class="post-meta-item-text">热度 </span>
               
                 <span class="leancloud-visitors-count"></span>
				 <span>℃</span>
             </span>
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <p><img src="http://cdn.tiimor.cn/images/GitHub+Hexo.png" alt="GitHub+Hexo&#x642D;&#x5EFA;&#x535A;&#x5BA2;"></p>
<h1 id="&#x5DE5;&#x5177;&#x5B89;&#x88C5;"><a href="#&#x5DE5;&#x5177;&#x5B89;&#x88C5;" class="headerlink" title="&#x5DE5;&#x5177;&#x5B89;&#x88C5;"></a>&#x5DE5;&#x5177;&#x5B89;&#x88C5;</h1><p>&#x5B89;&#x88C5;&#x7684;&#x5DE5;&#x5177;&#xFF1A;Git&#xFF0C;Nodejs&#xFF0C;Hexo&#xFF0C;&#x53EF;&#x9009;&#x5B89;&#x88C5;&#xFF1A;<a href="https://tortoisegit.org/download/" target="_blank" rel="noopener">TortoiseGit</a>&#x3001;<a href="https://desktop.github.com/" target="_blank" rel="noopener">GitHub Desktop</a>&#xFF0C;&#x5EFA;&#x8BAE;&#x4E0B;&#x8F7D;&#x4F7F;&#x7528;VPN&#x4EE3;&#x7406;&#xFF0C;<strong>&#x5DF2;&#x5B89;&#x88C5;&#x53EF;&#x7565;&#x8FC7;</strong></p>
<a id="more"></a>
<h2 id="Git"><a href="#Git" class="headerlink" title="Git"></a>Git</h2><p>&#x4E0B;&#x8F7D;&#x5E76;&#x5B89;&#x88C5;<a href="https://git-scm.com/download/win" target="_blank" rel="noopener">Git</a>&#xFF0C;&#x6216;&#x8005;&#x53C2;&#x8003;&#x8FD9;&#x4E2A;<a href="https://github.com/waylau/git-for-win" target="_blank" rel="noopener">&#x94FE;&#x63A5;</a><br><img src="http://cdn.tiimor.cn/images/Git.png" alt="Git&#x4E0B;&#x8F7D;" title="Git&#x4E0B;&#x8F7D;"></p>
<h2 id="Nodejs"><a href="#Nodejs" class="headerlink" title="Nodejs"></a>Nodejs</h2><p>&#x4E0B;&#x8F7D;<a href="https://nodejs.org//zh-cn/" target="_blank" rel="noopener">Nodejs</a>&#xFF0C;&#x6309;&#x7167;&#x65E2;&#x5B9A;&#x7684;&#x5957;&#x8DEF;&#x5B89;&#x88C5;&#x5373;&#x53EF;<br><img src="http://cdn.tiimor.cn/images/Nodejs.png" alt="Nodejs&#x4E0B;&#x8F7D;" title="Nodejs&#x4E0B;&#x8F7D;"></p>
<h2 id="Hexo"><a href="#Hexo" class="headerlink" title="Hexo"></a>Hexo</h2><p><a href="https://hexo.io/zh-cn/" target="_blank" rel="noopener">Hexo</a> &#x662F;&#x4E00;&#x4E2A;&#x5FEB;&#x901F;&#x3001;&#x7B80;&#x6D01;&#x4E14;&#x9AD8;&#x6548;&#x7684;&#x535A;&#x5BA2;&#x6846;&#x67B6;&#x3002;<a href="https://hexo.io/zh-cn/" target="_blank" rel="noopener">Hexo</a> &#x4F7F;&#x7528; <a href="http://daringfireball.net/projects/markdown/" target="_blank" rel="noopener">Markdown</a>&#xFF08;&#x6216;&#x5176;&#x4ED6;&#x6E32;&#x67D3;&#x5F15;&#x64CE;&#xFF09;&#x89E3;&#x6790;&#x6587;&#x7AE0;&#xFF0C;&#x5728;&#x51E0;&#x79D2;&#x5185;&#xFF0C;&#x5373;&#x53EF;&#x5229;&#x7528;&#x9753;&#x4E3D;&#x7684;&#x4E3B;&#x9898;&#x751F;&#x6210;&#x9759;&#x6001;&#x7F51;&#x9875;&#x3002;</p>
<ul>
<li><p><strong>&#x5B89;&#x88C5;</strong><br>&#x5B89;&#x88C5;Git&#x3001;Nodejs&#x540E;&#xFF0C;&#x5728;&#x4EFB;&#x610F;&#x76EE;&#x5F55;&#x53F3;&#x952E;<code>Git Bash Here</code>&#xFF0C;&#x7136;&#x540E;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x5B89;&#x88C5;<code>Hexo</code></p>
  <figure class="highlight avrasm"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm install -g hexo-<span class="keyword">cli</span></span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>Hexo&#x5E38;&#x7528;&#x547D;&#x4EE4;</p>
  <figure class="highlight elixir"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>hexo init [foler]	<span class="comment"># &#x521D;&#x59CB;&#x5316;</span></span><br><span class="line"><span class="variable">$ </span>hexo g		<span class="comment"># &#x751F;&#x6210;&#x9759;&#x6001;&#x7F51;&#x9875;&#xFF0C;&#x5728;&#x5F53;&#x524D;&#x76EE;&#x5F55;&#x4E0B;&#x751F;&#x6210;public&#x6587;&#x4EF6;&#x5939;</span></span><br><span class="line"><span class="variable">$ </span>hexo clean		<span class="comment"># &#x6E05;&#x9664;&#x7F13;&#x5B58; &#x8C03;&#x8BD5;&#x65F6;&#x7F51;&#x9875;&#x6B63;&#x5E38;&#x60C5;&#x51B5;&#x4E0B;&#x53EF;&#x4EE5;&#x5FFD;&#x7565;&#x6B64;&#x6761;&#x547D;&#x4EE4;</span></span><br><span class="line"><span class="variable">$ </span>hexo s		<span class="comment"># &#x542F;&#x52A8;&#x672C;&#x5730;web&#x670D;&#x52A1;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;http://localhost:4000/ &#x67E5;&#x770B;&#xFF0C;&#x7528;&#x4E8E;&#x535A;&#x5BA2;&#x9884;&#x89C8;</span></span><br><span class="line"><span class="variable">$ </span>hexo d		<span class="comment"># &#x90E8;&#x7F72;&#x535A;&#x5BA2;&#x5230;&#x8FDC;&#x7AEF;&#xFF1A;GitHub&#x7B49;&#x5E73;&#x53F0;</span></span><br></pre></td></tr></tbody></table></figure>
<p>  &#x547D;&#x4EE4;&#x7B80;&#x5199;</p>
  <figure class="highlight routeros"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">$ hexo n == hexo new		# &#x65B0;&#x5EFA;&#x6587;&#x7AE0;&#x6216;&#x9875;&#x9762;</span><br><span class="line">$ hexo g == hexo generate</span><br><span class="line">$ hexo s == hexo server</span><br><span class="line">$ hexo d == hexo deploy</span><br></pre></td></tr></tbody></table></figure>
</li>
</ul>
<h1 id="GitHub&#x5DE5;&#x7A0B;&#x521B;&#x5EFA;"><a href="#GitHub&#x5DE5;&#x7A0B;&#x521B;&#x5EFA;" class="headerlink" title="GitHub&#x5DE5;&#x7A0B;&#x521B;&#x5EFA;"></a>GitHub&#x5DE5;&#x7A0B;&#x521B;&#x5EFA;</h1><p><code>GitHub Pages</code>&#x514D;&#x8D39;&#x7684;&#x9759;&#x6001;&#x7AD9;&#x70B9;&#xFF0C;&#x5176;&#x7279;&#x70B9;&#xFF1A;&#x514D;&#x8D39;&#x6258;&#x7BA1;&#x3001;&#x81EA;&#x5E26;&#x4E3B;&#x9898;&#x3001;&#x652F;&#x6301;&#x81EA;&#x5236;&#x9875;&#x9762;&#x7B49;&#x3002;</p>
<ul>
<li><p>&#x767B;&#x5F55;<a href="https://github.com/" target="_blank" rel="noopener">GitHub</a>&#x7F51;&#x7AD9;&#xFF0C;&#x6CA1;&#x6709;&#x8D26;&#x53F7;&#x5219;&#x521B;&#x5EFA;&#xFF0C;&#x5DF2;&#x6709;&#x8D26;&#x53F7;&#x5219;&#x767B;&#x5F55;<br><img src="http://cdn.tiimor.cn/images/GitHub%E4%B8%BB%E9%A1%B5.png" alt="GitHub&#x4E3B;&#x9875;" title="&#x6CE8;&#x518C;&#x767B;&#x5F55;"></p>
</li>
<li><p><code>Start a project</code>&#x521B;&#x5EFA;&#x4ED3;&#x5E93;&#xFF1B;&#x6BCF;&#x4E2A;&#x5E10;&#x53F7;&#x53EA;&#x80FD;&#x6709;&#x4E00;&#x4E2A;&#x4ED3;&#x5E93;&#x6765;&#x5B58;&#x653E;&#x4E2A;&#x4EBA;&#x4E3B;&#x9875;&#xFF0C;&#x800C;&#x4E14;&#x4ED3;&#x5E93;&#x540D;&#x5B57;&#x5FC5;&#x987B;&#x662F;<strong>username.github.io</strong>&#xFF0C;&#x8FD9;&#x662F;&#x7279;&#x6B8A;&#x7684;&#x547D;&#x540D;&#x7EA6;&#x5B9A;<br><img src="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E4%BB%93%E5%BA%93%E5%88%9B%E5%BB%BA.png" alt="&#x521B;&#x5EFA;&#x4ED3;&#x5E93;" title="&#x521B;&#x5EFA;&#x4ED3;&#x5E93;"><br><img src="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E4%BB%93%E5%BA%93%E5%91%BD%E5%90%8D.png" alt="&#x535A;&#x5BA2;&#x4ED3;&#x5E93;&#x547D;&#x540D;" title="&#x535A;&#x5BA2;&#x4ED3;&#x5E93;&#x547D;&#x540D;&#x683C;&#x5F0F;"><br>&#x4F60;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;<a href="http://username.github.io" target="_blank" rel="noopener">http://username.github.io</a> &#x6765;&#x8BBF;&#x95EE;&#x4F60;&#x7684;&#x4E2A;&#x4EBA;&#x4E3B;&#x9875;&#xFF0C;&#x6B64;&#x65F6;&#x672A;&#x90E8;&#x7F72;&#x7F51;&#x9875;&#xFF0C;&#x8BBF;&#x95EE;&#x7684;&#x662F;<em>404</em>&#x7F51;&#x9875;</p>
</li>
<li><p><strong>SSH&#x5BC6;&#x94A5;</strong>&#xFF0C;&#x5728;&#x7F51;&#x7AD9;&#x90E8;&#x7F72;&#x5230;<strong>yourname.github.io</strong>&#x4ED3;&#x5E93;&#x65F6;&#x9700;&#x8981;&#x6743;&#x9650;</p>
<ul>
<li><p>SSH&#x68C0;&#x6D4B;&#x7535;&#x8111;&#x662F;&#x5426;&#x6709;&#x6743;&#x9650;&#x8BBF;&#x95EE;GitHub&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#xFF0C;&#x6CA1;&#x6709;&#x8BBE;&#x7F6E;SSH&#x5BC6;&#x94A5;&#x662F;&#x62D2;&#x7EDD;&#x8BBF;&#x95EE;&#xFF0C;&#x56FE;&#x4E3A;&#x8BBF;&#x95EE;&#x6210;&#x529F;</p>
  <figure class="highlight elixir"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>ssh -T git<span class="variable">@github</span>.com</span><br></pre></td></tr></tbody></table></figure>
<p><img src="http://cdn.tiimor.cn/images/SSH%E8%BF%9E%E6%8E%A5.png" alt="SSH&#x8FDE;&#x63A5;" title="SSH&#x6D4B;&#x8BD5;&#x8BBF;&#x95EE;&#x6743;&#x9650;"></p>
</li>
<li><p>&#x751F;&#x6210;SSH&#x5BC6;&#x94A5;&#xFF0C;&#x4EFB;&#x610F;&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;&#x53F3;&#x952E;&#x6253;&#x5F00;<code>Git Bash Here</code>&#xFF0C;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x751F;&#x6210;&#x5BC6;&#x94A5;&#xFF0C;&#x9700;&#x8981;&#x8F93;&#x5165;&#xFF1A;&#x2460;&#x5BC6;&#x94A5;&#x6587;&#x4EF6;&#x751F;&#x6210;&#x76EE;&#x5F55;&#xFF0C;&#x9ED8;&#x8BA4;&#x5373;&#x53EF;&#xFF1B;&#x2461;SSH&#x8BBF;&#x95EE;&#x65F6;&#x9700;&#x8981;&#x7684;&#x5BC6;&#x7801;&#xFF0C;<code>Enter</code>&#x53EF;&#x8DF3;&#x8FC7;&#xFF1B;&#x2462;&#x518D;&#x6B21;&#x786E;&#x8BA4;&#x5BC6;&#x7801;&#xFF0C;<code>Enter</code>&#x53EF;&#x8DF3;&#x8FC7;</p>
  <figure class="highlight elixir"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="variable">$ </span>ssh-keygen -t rsa -C <span class="string">&quot;GitHub&#x8D26;&#x6237;&#x6CE8;&#x518C;&#x7684;&#x90AE;&#x7BB1;&quot;</span></span><br></pre></td></tr></tbody></table></figure>
<p><img src="http://cdn.tiimor.cn/images/SSH%E5%AF%86%E9%92%A5%E5%88%9B%E5%BB%BA.png" alt="SSH&#x5BC6;&#x94A5;&#x521B;&#x5EFA;" title="SSH&#x5BC6;&#x94A5;&#x521B;&#x5EFA;"></p>
</li>
<li><p>&#x6253;&#x5F00;&#x751F;&#x6210;&#x7684;<code>id_rsa.pub</code>&#x6587;&#x4EF6;&#xFF0C;&#x590D;&#x5236;&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#xFF0C;&#x8FDB;&#x5165;&#x535A;&#x5BA2;&#x4ED3;&#x5E93;<code>Settings</code>&#x7684;<code>Deploy keys</code>&#xFF0C;<code>Add deploy key</code>&#x5E76;&#x4E14;&#x52FE;&#x9009;<code>Allow write access</code>&#xFF1B;&#x6216;&#x8005;&#x8FDB;&#x5165;<a href="https://github.com/settings/ssh" target="_blank" rel="noopener">https://github.com/settings/ssh</a> &#xFF0C;<code>New SSH key</code>&#x3002;&#x586B;&#x5199;&#x5B8C;<code>Title</code>&#xFF0C;&#x5C06;&#x590D;&#x5236;&#x7684;<code>id_rsa.pub</code>&#x6587;&#x4EF6;&#x5185;&#x5BB9;&#x5199;&#x5230;<code>Key</code>&#x4E2D;<br><img src="http://cdn.tiimor.cn/images/%E4%BB%93%E5%BA%93%E7%9A%84DeployKey.png" alt="&#x4ED3;&#x5E93;DeployKey"></p>
<p><img src="http://cdn.tiimor.cn/images/%E6%B7%BB%E5%8A%A0DeployKeys.png" alt="&#x6DFB;&#x52A0;DeployKey" title="&#x6DFB;&#x52A0;Deploy Keys"></p>
</li>
<li><p>&#x518D;&#x6B21;&#x6D4B;&#x8BD5;SSH&#x662F;&#x5426;&#x6709;&#x8BBF;&#x95EE;&#x6743;&#x9650;&#xFF0C;<strong>&#x6CE8;&#x610F;&#xFF1A;&#x6CA1;&#x6709;&#x6743;&#x9650;&#x7F51;&#x9875;&#x6700;&#x7EC8;&#x662F;&#x4E0D;&#x80FD;&#x90E8;&#x7F72;&#x5230;GitHub Pages&#x4E0A;&#x7684;</strong></p>
</li>
</ul>
</li>
</ul>
<h1 id="&#x535A;&#x5BA2;"><a href="#&#x535A;&#x5BA2;" class="headerlink" title="&#x535A;&#x5BA2;"></a>&#x535A;&#x5BA2;</h1><h2 id="&#x535A;&#x5BA2;&#x5DE5;&#x7A0B;"><a href="#&#x535A;&#x5BA2;&#x5DE5;&#x7A0B;" class="headerlink" title="&#x535A;&#x5BA2;&#x5DE5;&#x7A0B;"></a>&#x535A;&#x5BA2;&#x5DE5;&#x7A0B;</h2><ul>
<li><p>&#x4EFB;&#x610F;&#x76EE;&#x5F55;&#x4E0B;&#x6253;&#x5F00;<code>Git Bash Here</code>&#xFF0C;&#x6267;&#x884C;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x521D;&#x59CB;&#x5316;&#xFF0C;&#x521B;&#x5EFA;Blog&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;&#xFF0C;&#x5982;&#xFF1A;<code>username.github.io</code>&#xFF0C;&#x79F0;&#x4E3A;<span id="inline-blue">&#x7AD9;&#x70B9;&#x76EE;&#x5F55;</span></p>
  <figure class="highlight stylus"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo init username<span class="selector-class">.github</span><span class="selector-class">.io</span></span><br></pre></td></tr></tbody></table></figure>
<p>  <img src="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E5%B7%A5%E7%A8%8B%E7%9B%AE%E5%BD%95.png" alt="&#x535A;&#x5BA2;&#x5DE5;&#x7A0B;&#x76EE;&#x5F55;"></p>
  <figure class="highlight haxe"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line">&#x251C;&#x2500;&#x2500; .deploy		<span class="meta"># &#x9700;&#x8981;&#x90E8;&#x7F72;&#x7684;&#x6587;&#x4EF6;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; node_modules	<span class="meta"># Hexo&#x63D2;&#x4EF6;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; <span class="keyword">public</span>		<span class="meta"># &#x751F;&#x6210;&#x7684;&#x9759;&#x6001;&#x7F51;&#x9875;&#x6587;&#x4EF6;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; scaffolds		<span class="meta"># &#x6A21;&#x677F;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; source		<span class="meta"># &#x535A;&#x5BA2;&#x6B63;&#x6587;&#x548C;&#x5176;&#x4ED6;&#x6E90;&#x6587;&#x4EF6;, 404 favicon CNAME &#x7B49;&#x90FD;&#x5E94;&#x8BE5;&#x653E;&#x5728;&#x8FD9;&#x91CC;</span></span><br><span class="line">|   &#x251C;&#x2500;&#x2500; _drafts		<span class="meta"># &#x8349;&#x7A3F;</span></span><br><span class="line">|   &#x2514;&#x2500;&#x2500; _posts		<span class="meta"># &#x6587;&#x7AE0;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; themes		<span class="meta"># &#x4E3B;&#x9898;</span></span><br><span class="line">&#x251C;&#x2500;&#x2500; _config.yml		<span class="meta"># &#x5168;&#x5C40;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span></span><br><span class="line">&#x2514;&#x2500;&#x2500; <span class="keyword">package</span>.json</span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x542F;&#x52A8;&#x672C;&#x5730;web&#x670D;&#x52A1;&#xFF0C;&#x9884;&#x89C8;&#x7F51;&#x9875;</p>
  <figure class="highlight stylus"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// &#x8FDB;&#x5165;&#x7AD9;&#x70B9;&#x76EE;&#x5F55;</span></span><br><span class="line">$ cd username<span class="selector-class">.github</span><span class="selector-class">.io</span></span><br><span class="line">$ hexo s</span><br></pre></td></tr></tbody></table></figure>
<p>  &#x6253;&#x5F00;&#x6D4F;&#x89C8;&#x5668;&#xFF0C;&#x8F93;&#x5165;<code>localhost:4000</code>&#xFF0C;&#x6253;&#x5F00;&#x535A;&#x5BA2;&#x4E3B;&#x9875;&#xFF0C;&#x663E;&#x793A;&#x7684;&#x5185;&#x5BB9;&#x662F;&#x521D;&#x59CB;&#x5316;&#x65F6;&#x751F;&#x6210;&#x7684;&#x535A;&#x5BA2;&#xFF0C;&#x4F4D;&#x7F6E;&#xFF1A;<code>source\_post\hello-world.md</code>&#xFF0C;&#x53EF;&#x5220;&#x9664;<br>  <img src="http://cdn.tiimor.cn/images/%E5%8D%9A%E5%AE%A2%E9%BB%98%E8%AE%A4%E9%A6%96%E9%A1%B5.png" alt="&#x9ED8;&#x8BA4;&#x4E3B;&#x9898;&#x535A;&#x5BA2;"></p>
</li>
<li><p>&#x7B2C;&#x4E00;&#x7BC7;&#x535A;&#x5BA2;&#xFF0C;&#x4F7F;&#x7528;&#x4EE5;&#x4E0B;&#x547D;&#x4EE4;&#x751F;&#x6210;&#x535A;&#x5BA2;&#xFF0C;&#x535A;&#x5BA2;&#x6587;&#x4EF6;&#x5728;<code>source\_post</code>&#x76EE;&#x5F55;&#x4E0B;&#x6587;&#x4EF6;<code>HelloWorld.md</code>&#xFF0C;&#x7136;&#x540E;&#x9884;&#x89C8;&#x7B2C;&#x4E00;&#x7BC7;&#x535A;&#x5BA2;</p>
  <figure class="highlight actionscript"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">new</span> HelloWorld</span><br></pre></td></tr></tbody></table></figure>
<p>  <img src="http://cdn.tiimor.cn/images/%E9%BB%98%E8%AE%A4%E4%B8%BB%E9%A2%98HelloWorld%E5%8D%9A%E5%AE%A2.png" alt="&#x9ED8;&#x8BA4;&#x4E3B;&#x9898;HelloWorld"></p>
</li>
<li><p>&#x535A;&#x5BA2;&#x6A21;&#x677F; <strong>[&#x53EF;&#x7565;&#x8FC7;]</strong></p>
<ul>
<li><p>&#x535A;&#x5BA2;&#x6A21;&#x677F;&#x5728;<code>&#x7AD9;&#x70B9;&#x76EE;&#x5F55;\scaffolds\</code>&#x91CC;&#xFF0C;&#x81EA;&#x884C;&#x6DFB;&#x52A0;&#x3001;&#x4FEE;&#x6539;&#x3001;&#x5220;&#x9664;&#xFF0C;<a href="https://hexo.io/zh-cn/docs/writing.html" target="_blank" rel="noopener">&#x547D;&#x4EE4;&#x8BF4;&#x660E;</a></p>
<figure class="highlight gauss"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// [layout]&#x535A;&#x5BA2;&#x6A21;&#x677F;</span></span><br><span class="line">$ hexo <span class="keyword">new</span> [layout] &lt;<span class="built_in">title</span>&gt;</span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x9ED8;&#x8BA4;&#x521B;&#x5EFA;&#x535A;&#x5BA2;&#xFF0C;&#x751F;&#x6210;&#x5728;<code>source\_posts</code>&#x76EE;&#x5F55;&#x4E0B;</p>
<figure class="highlight gauss"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">new</span> &lt;<span class="built_in">title</span>&gt;</span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x521B;&#x5EFA;&#x8349;&#x7A3F;&#xFF0C;&#x751F;&#x6210;&#x5728;<code>source\_drafts</code>&#x76EE;&#x5F55;&#x4E0B;</p>
<figure class="highlight ada"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo <span class="keyword">new</span> <span class="comment">--draft &lt;title&gt;</span></span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x521B;&#x5EFA;&#x8D44;&#x6E90;&#x76EE;&#x5F55;tags&#xFF0C;&#x751F;&#x6210;&#x76EE;&#x5F55;&#x5728;<code>source</code>&#x76EE;&#x5F55;&#x4E0B;</p>
<figure class="highlight routeros"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new<span class="built_in"> page </span>tags</span><br></pre></td></tr></tbody></table></figure>
</li>
</ul>
</li>
<li><p>&#x521B;&#x5EFA;<a href="http://theme-next.iissnan.com/theme-settings.html#tags-page" target="_blank" rel="noopener">&#x6807;&#x7B7E;</a> <strong>[&#x53EF;&#x7565;&#x8FC7;]</strong>&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x751F;&#x6210;&#x6587;&#x4EF6;<code>source\tags\index.md</code>&#xFF0C;&#x4FEE;&#x6539;<code>type</code>&#x4E3A;tags&#xFF0C;&#x5373;&#x8BBE;&#x7F6E;&#x9875;&#x9762;&#x7C7B;&#x578B;&#x4E3A;<code>&#x6807;&#x7B7E;</code></p>
  <figure class="highlight routeros"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ cd your-hexo-site</span><br><span class="line">$ hexo new<span class="built_in"> page </span>tags</span><br></pre></td></tr></tbody></table></figure>
</li>
</ul>
<p><img src="http://cdn.tiimor.cn/images/%E5%88%9B%E5%BB%BA%E6%A0%87%E7%AD%BE.png" alt="&#x6807;&#x7B7E;&#x7C7B;&#x578B;" title="&#x6807;&#x7B7E;&#x7C7B;&#x578B;"></p>
<ul>
<li><p>&#x521B;&#x5EFA;<a href="http://theme-next.iissnan.com/theme-settings.html#categories-page" target="_blank" rel="noopener">&#x5206;&#x7C7B;</a> <strong>[&#x53EF;&#x7565;&#x8FC7;]</strong>&#xFF0C;&#x540C;&#x7406;<code>&#x6807;&#x7B7E;</code>&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4;&#xFF0C;&#x5728;&#x751F;&#x6210;&#x7684;&#x6A21;&#x677F;&#x6587;&#x4EF6;&#x91CC;&#xFF0C;&#x8BBE;&#x7F6E;<code>type</code>&#x4E3A;<code>categories</code></p>
<figure class="highlight routeros"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ hexo new<span class="built_in"> page </span>categories</span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x66F4;&#x591A;&#x64CD;&#x4F5C;&#xFF0C;&#x8BF7;&#x67E5;&#x770B;<a href="https://hexo.io/zh-cn/docs/" target="_blank" rel="noopener">Hexo&#x4F7F;&#x7528;&#x6587;&#x6863;</a></p>
</li>
</ul>
<h2 id="&#x4E3B;&#x9898;"><a href="#&#x4E3B;&#x9898;" class="headerlink" title="&#x4E3B;&#x9898;"></a>&#x4E3B;&#x9898;</h2><p>&#x4E3A;&#x4E86;&#x7F8E;&#x89C2;&#x535A;&#x5BA2;&#x7F51;&#x9875;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x6F02;&#x4EAE;&#x7684;&#x4E3B;&#x9898;&#x3002;&#x5728; Hexo &#x4E2D;&#x6709;&#x4E24;&#x4EFD;&#x4E3B;&#x8981;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x5176;&#x540D;&#x79F0;&#x90FD;&#x662F; <code>_config.yml</code>&#x3002; &#x5176;&#x4E2D;&#xFF0C;&#x4E00;&#x4EFD;&#x4F4D;&#x4E8E;<span id="inline-blue">&#x7AD9;&#x70B9;&#x6839;&#x76EE;&#x5F55;</span>&#x4E0B;&#xFF0C;&#x4E3B;&#x8981;&#x5305;&#x542B; Hexo &#x672C;&#x8EAB;&#x7684;&#x914D;&#x7F6E;&#xFF0C;&#x79F0;&#x4E3A;<span id="inline-blue">&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#xFF1B;&#x53E6;&#x4E00;&#x4EFD;&#x4F4D;&#x4E8E;<span id="inline-purple">&#x4E3B;&#x9898;&#x76EE;&#x5F55;</span>&#x4E0B;&#xFF0C;&#x8FD9;&#x4EFD;&#x914D;&#x7F6E;&#x7531;&#x4E3B;&#x9898;&#x4F5C;&#x8005;&#x63D0;&#x4F9B;&#xFF0C;&#x4E3B;&#x8981;&#x7528;&#x4E8E;&#x914D;&#x7F6E;&#x4E3B;&#x9898;&#x76F8;&#x5173;&#x7684;&#x9009;&#x9879;&#xFF0C;&#x79F0;&#x4E3A;<span id="inline-purple">&#x4E3B;&#x9898;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#xFF0C;&#x9ED8;&#x8BA4;&#x7684;&#x4E3B;&#x9898;&#x662F;<code>themes\landscape</code></p>
<ul>
<li><p>Clone&#x4E00;&#x4EFD;NexT&#x4E3B;&#x9898;&#x5230;themes&#x76EE;&#x5F55;&#x4E0B;&#xFF0C;<span id="inline-purple">&#x4E3B;&#x9898;&#x76EE;&#x5F55;</span>&#x4E3A;next</p>
  <figure class="highlight vim"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">$ <span class="keyword">cd</span> themes</span><br><span class="line">$ git clone http<span class="variable">s:</span>//github.<span class="keyword">com</span>/iissnan/hexo-theme-<span class="keyword">next</span>.git <span class="keyword">next</span></span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x4FEE;&#x6539;&#x7F51;&#x7AD9;&#x4E3B;&#x9898;&#xFF0C;<span id="inline-blue">&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#x6709;&#x5F88;&#x591A;&#x8BBE;&#x7F6E;&#x5C5E;&#x6027;</p>
  <figure class="highlight yaml"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Hexo Configuration</span></span><br><span class="line"><span class="comment">## Docs: https://hexo.io/docs/configuration.html</span></span><br><span class="line"><span class="comment">## Source: https://github.com/hexojs/hexo/</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Site							# &#x7AD9;&#x70B9;&#x4FE1;&#x606F;</span></span><br><span class="line"><span class="attr">title:</span>							<span class="comment"># &#x6807;&#x9898;</span></span><br><span class="line"><span class="attr">subtitle:</span>						<span class="comment"># &#x526F;&#x6807;&#x9898;</span></span><br><span class="line"><span class="attr">description:</span>						<span class="comment"># &#x7AD9;&#x70B9;&#x63CF;&#x8FF0;</span></span><br><span class="line"><span class="attr">author:</span>							<span class="comment"># &#x4F5C;&#x8005;</span></span><br><span class="line"><span class="attr">language:</span>						<span class="comment"># &#x8BED;&#x8A00;</span></span><br><span class="line"><span class="attr">timezone:</span>						<span class="comment"># &#x65F6;&#x533A;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># URL							# &#x94FE;&#x63A5;&#x683C;&#x5F0F;</span></span><br><span class="line"><span class="comment">## If your site is put in a subdirectory, set url as &apos;http://yoursite.com/child&apos; and root as &apos;/child/&apos;</span></span><br><span class="line"><span class="attr">url:</span> <span class="attr">http://yoursite.com</span>				<span class="comment"># &#x7528;&#x4E8E;RSS&#x8BA2;&#x9605;&#xFF0C;&#x586B;&#x5199;&#x81EA;&#x5DF1;&#x7684;&#x4E3B;&#x9875;&#x5730;&#x5740;</span></span><br><span class="line"><span class="attr">root:</span> <span class="string">/</span></span><br><span class="line"><span class="attr">permalink:</span> <span class="string">:year/:month/:day/:title/</span>			<span class="comment"># &#x4FEE;&#x6539;&#x94FE;&#x63A5;&#x683C;&#x5F0F;&#xFF0C;&#x53EF;&#x4EE5;&#x53BB;&#x6389;&#x65E5;&#x671F;&#xFF0C;&#x6539;&#x6210;:title/&#xFF0C;&#x5219;&#x94FE;&#x63A5;http://2017/5/20/Hello&#x53D8;&#x6210;http://Hello</span></span><br><span class="line"><span class="attr">permalink_defaults:</span> </span><br><span class="line"></span><br><span class="line"><span class="comment"># Directory						# &#x76EE;&#x5F55;</span></span><br><span class="line"><span class="attr">source_dir:</span> <span class="string">source</span>					<span class="comment"># &#x6E90;&#x6587;&#x4EF6;</span></span><br><span class="line"><span class="attr">public_dir:</span> <span class="string">public</span>					<span class="comment"># &#x751F;&#x6210;&#x7684;&#x7F51;&#x9875;&#x6587;&#x4EF6;</span></span><br><span class="line"><span class="attr">tag_dir:</span> <span class="string">tags</span>						<span class="comment"># &#x6807;&#x7B7E;</span></span><br><span class="line"><span class="attr">archive_dir:</span> <span class="string">archives</span>					<span class="comment"># &#x5F52;&#x6863;</span></span><br><span class="line"><span class="attr">category_dir:</span> <span class="string">categories</span>				<span class="comment"># &#x5206;&#x7C7B;</span></span><br><span class="line"><span class="attr">code_dir:</span> <span class="string">downloads/code</span></span><br><span class="line"><span class="attr">i18n_dir:</span> <span class="string">:lang</span>						<span class="comment"># &#x56FD;&#x9645;&#x5316;</span></span><br><span class="line"><span class="attr">skip_render:</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Writing						# &#x5199;&#x4F5C;</span></span><br><span class="line"><span class="attr">new_post_name:</span> <span class="string">:title.md</span> <span class="comment"># File name of new posts	# &#x65B0;&#x6587;&#x7AE0;&#x6807;&#x9898;</span></span><br><span class="line"><span class="attr">default_layout:</span> <span class="string">post</span> <span class="comment"># &#x9ED8;&#x8BA4;&#x6A21;&#x677F;(post page photo draft)</span></span><br><span class="line"><span class="attr">titlecase:</span> <span class="literal">false</span> <span class="comment"># Transform title into titlecase	# &#x6807;&#x9898;&#x8F6C;&#x6362;&#x6210;&#x5927;&#x5199;</span></span><br><span class="line"><span class="attr">external_link:</span> <span class="literal">true</span> <span class="comment"># Open external links in new tab	# &#x65B0;&#x6807;&#x7B7E;&#x9875;&#x91CC;&#x6253;&#x5F00;&#x8FDE;&#x63A5;</span></span><br><span class="line"><span class="attr">filename_case:</span> <span class="number">0</span></span><br><span class="line"><span class="attr">render_drafts:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr">post_asset_folder:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr">relative_link:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr">future:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr">highlight:</span>						<span class="comment"># &#x8BED;&#x6CD5;&#x9AD8;&#x4EAE;</span></span><br><span class="line"><span class="attr">  enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr">  line_number:</span> <span class="literal">true</span>					<span class="comment"># &#x663E;&#x793A;&#x884C;&#x53F7;</span></span><br><span class="line"><span class="attr">  auto_detect:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr">  tab_replace:</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Category &amp; Tag					# &#x5206;&#x7C7B;&#x548C;&#x6807;&#x7B7E;</span></span><br><span class="line"><span class="attr">default_category:</span> <span class="string">uncategorized</span>				<span class="comment"># &#x9ED8;&#x8BA4;&#x5206;&#x7C7B;</span></span><br><span class="line"><span class="attr">category_map:</span></span><br><span class="line"><span class="attr">tag_map:</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Date / Time format					# &#x65E5;&#x671F;&#x65F6;&#x95F4;&#x683C;&#x5F0F;</span></span><br><span class="line"><span class="comment">## Hexo uses Moment.js to parse and display date</span></span><br><span class="line"><span class="comment">## You can customize the date format as defined in</span></span><br><span class="line"><span class="comment">## http://momentjs.com/docs/#/displaying/format/</span></span><br><span class="line"><span class="attr">date_format:</span> <span class="string">YYYY-MM-DD</span></span><br><span class="line"><span class="attr">time_format:</span> <span class="attr">HH:mm:ss</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Pagination						# &#x5206;&#x9875;</span></span><br><span class="line"><span class="comment">## Set per_page to 0 to disable pagination</span></span><br><span class="line"><span class="attr">per_page:</span> <span class="number">10</span>						<span class="comment"># &#x6BCF;&#x9875;&#x6587;&#x7AE0;&#x6570;, &#x8BBE;&#x7F6E;&#x6210; 0 &#x7981;&#x7528;&#x5206;&#x9875;</span></span><br><span class="line"><span class="attr">pagination_dir:</span> <span class="string">page</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Extensions						# &#x63D2;&#x4EF6;&#x548C;&#x4E3B;&#x9898;</span></span><br><span class="line"><span class="comment">## Plugins: https://hexo.io/plugins/</span></span><br><span class="line"><span class="comment">## Themes: https://hexo.io/themes/</span></span><br><span class="line"><span class="attr">theme:</span> <span class="string">landscape</span>					<span class="comment"># &#x4E3B;&#x9898;&#x5207;&#x6362;&#xFF0C;&#x6839;&#x636E;/themes/&#x76EE;&#x5F55;&#x4E0B;&#x7684;&#x6587;&#x4EF6;&#x540D;&#x66F4;&#x6362;&#xFF0C;&#x6587;&#x4EF6;&#x540D;&#x5373;&#x4E3A;&#x4E3B;&#x9898;&#x540D;</span></span><br><span class="line"></span><br><span class="line"><span class="comment"># Deployment						# &#x90E8;&#x7F72;, &#x540C;&#x65F6;&#x53D1;&#x5E03;&#x5728; GitHub</span></span><br><span class="line"><span class="comment">## Docs: https://hexo.io/docs/deployment.html</span></span><br><span class="line"><span class="attr">deploy:</span></span><br><span class="line"><span class="attr">  type:</span></span><br></pre></td></tr></tbody></table></figure>
<p>  &#x6211;&#x4EEC;&#x53EA;&#x9700;&#x8981;&#x4FEE;&#x6539;&#x5176;&#x4E2D;&#x7684;&#x90E8;&#x5206;&#xFF0C;&#x4E3B;&#x9898;&#x5207;&#x6362;<code>theme</code>&#x5C5E;&#x6027;&#x503C;<code>landscape</code>&#x6362;&#x6210;<code>next</code>&#xFF0C;&#x5C5E;&#x6027;&#x503C;&#x9700;&#x8981;&#x4E0E;&#x4E3B;&#x9898;&#x76EE;&#x5F55;&#x4E00;&#x6837;&#xFF0C;&#x5426;&#x5219;&#x7F51;&#x9875;&#x6253;&#x4E0D;&#x5F00;&#xFF0C;&#x542F;&#x52A8;&#x547D;&#x4EE4;&#x9884;&#x89C8;</p>
  <figure class="highlight dts"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta"># Site</span></span><br><span class="line"><span class="symbol">title:</span> &#x73ED;&#x5FB7;&#x5C14;&#x57CE;</span><br><span class="line"><span class="symbol">subtitle:</span> &#x5FAE;&#x7B11;&#xFF0C;&#x7B80;&#x5355;&#xFF0C;&#x594B;&#x53D1;</span><br><span class="line"><span class="symbol">description:</span> &#x5B89;&#x9759;&#x5730;&#x505A;&#x4E00;&#x53EA;&#x7EA6;&#x5FB7;&#x5C14;&#x4EBA;&#x3002;</span><br><span class="line"><span class="symbol">author:</span> TiiMor</span><br><span class="line"><span class="symbol">language:</span> zh-Hans</span><br><span class="line"><span class="symbol">timezone:</span> Asia/Shanghai</span><br><span class="line">&#xB7;</span><br><span class="line">&#xB7;</span><br><span class="line">&#xB7;</span><br><span class="line"><span class="meta"># Extensions</span></span><br><span class="line"><span class="meta">## Plugins: https:<span class="comment">//hexo.io/plugins/</span></span></span><br><span class="line"><span class="meta">## Themes: https:<span class="comment">//hexo.io/themes/</span></span></span><br><span class="line"><span class="symbol">theme:</span> next					<span class="meta"># &#x4E3B;&#x9898;&#x5207;&#x6362;&#xFF0C;&#x5207;&#x6362;&#x4E3A;next&#x4E3B;&#x9898;</span></span><br><span class="line">&#xB7;</span><br><span class="line">&#xB7;</span><br><span class="line">&#xB7;</span><br></pre></td></tr></tbody></table></figure>
<p>  <strong>&#x6CE8;&#x610F;&#xFF1A;&#x6BCF;&#x4E00;&#x9879;&#x7684;&#x586B;&#x5199;&#xFF0C;&#x5176;:&#x540E;&#x9762;&#x90FD;&#x8981;&#x4FDD;&#x7559;&#x4E00;&#x4E2A;&#x7A7A;&#x683C;</strong>&#xFF0C;<a href="https://hexo.io/zh-cn/docs/configuration.html" target="_blank" rel="noopener">&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x5C5E;&#x6027;&#x63CF;&#x8FF0;</a><br>  <img src="http://cdn.tiimor.cn/images/NexT%E4%B8%BB%E9%A2%98%E5%8D%9A%E5%AE%A2.png" alt="NexT&#x4E3B;&#x9898;&#x535A;&#x5BA2;" title="NexT&#x4E3B;&#x9898;"></p>
</li>
<li><p><a href="https://github.com/hexojs/hexo/wiki/Themes" target="_blank" rel="noopener">&#x4E3B;&#x9898;&#x63A8;&#x8350;</a>&#xFF0C;&#x8FD9;&#x91CC;&#x6709;&#x5927;&#x91CF;&#x7684;&#x4E3B;&#x9898;&#x5217;&#x8868;&#x4F9B;&#x9009;&#x62E9;&#xFF0C;<a href="https://hexo.io/themes/" target="_blank" rel="noopener">&#x4E3B;&#x9898;&#x9884;&#x89C8;</a>&#xFF0C;&#x6211;&#x9009;&#x62E9;&#x7684;&#x662F;&#x6BD4;&#x8F83;&#x6D41;&#x884C;&#x7684;<a href="https://github.com/iissnan/hexo-theme-next" target="_blank" rel="noopener">NexT</a>&#x4E3B;&#x9898;&#xFF0C;&#x5176;&#x4ED6;&#x4E3B;&#x9898;&#x540C;&#x7406;<code>NexT</code>&#x5207;&#x6362;&#x5373;&#x53EF;&#xFF0C;<a href="http://theme-next.iissnan.com/" target="_blank" rel="noopener">NexT&#x4F7F;&#x7528;&#x6587;&#x6863;</a>&#x6709;&#x8BE6;&#x7EC6;&#x7684;<span id="inline-purple">&#x4E3B;&#x9898;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#x8BF4;&#x660E;</p>
</li>
<li><p><a href="http://theme-next.iissnan.com/theme-settings.html#rss" target="_blank" rel="noopener">RSS&#x8BA2;&#x9605;</a> <strong>[&#x53EF;&#x7565;&#x8FC7;]</strong>&#xFF1A;<span id="inline-blue">&#x7AD9;&#x70B9;&#x76EE;&#x5F55;</span>&#x4E0B;&#xFF0C;<code>Git Bash Here</code>&#x6267;&#x884C;&#x4E0B;&#x9762;&#x547D;&#x4EE4;&#xFF0C;&#x7136;&#x540E;&#x4FEE;&#x6539;<span id="inline-blue">&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#x91CC;&#x9762;&#x7684;<code>url: http://yoursite.com</code>&#x4E3A;&#x81EA;&#x5DF1;&#x4E3B;&#x9875;&#x5730;&#x5740;&#xFF0C;&#x5373;&#x53EF;&#x5B8C;&#x6210;RSS&#x8BA2;&#x9605;</p>
  <figure class="highlight sql"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">$ npm <span class="keyword">install</span> hexo-generator-feed <span class="comment">--save</span></span><br></pre></td></tr></tbody></table></figure>
<p>  <img src="http://cdn.tiimor.cn/images/RSS%E8%AE%A2%E9%98%85.png" alt="RSS&#x793A;&#x4F8B;&#x56FE;"></p>
</li>
</ul>
<h2 id="&#x90E8;&#x7F72;"><a href="#&#x90E8;&#x7F72;" class="headerlink" title="&#x90E8;&#x7F72;"></a>&#x90E8;&#x7F72;</h2><p>&#x5728;&#x90E8;&#x7F72;&#x4E4B;&#x524D;&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; <code>hexo clean &amp;&amp; hexo s</code> &#x547D;&#x4EE4;&#x8FDB;&#x884C;&#x672C;&#x5730;&#x9884;&#x89C8;&#xFF0C;&#x6267;&#x884C;&#x5B8C;&#x540E;&#xFF0C;&#x6253;&#x5F00;&#x7F51;&#x9875;&#xFF1A;<code>http://localhost:4000/</code> &#x8FDB;&#x884C;&#x8C03;&#x8BD5;&#xFF0C;&#x786E;&#x8BA4;&#x6CA1;&#x95EE;&#x9898;&#x540E;&#xFF0C;&#x90E8;&#x7F72;&#x3002;</p>
<p>&#x6211;&#x4EEC;&#x5DF2;&#x7ECF;&#x751F;&#x6210;&#x4E86;&#x9759;&#x6001;&#x7F51;&#x9875;&#xFF0C;&#x4F46;&#x662F;&#x53EA;&#x80FD;&#x81EA;&#x5DF1;&#x67E5;&#x770B;&#xFF0C;&#x60F3;&#x7ED9;&#x5176;&#x4ED6;&#x4EBA;&#x6B23;&#x8D4F;&#xFF0C;&#x6700;&#x91CD;&#x8981;&#x7684;&#x4E00;&#x6B65;&#x662F;&#x90E8;&#x7F72;&#x5230;GitHub&#x4E0A;</p>
<p>&#x6253;&#x5F00;<span id="inline-blue">&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#xFF0C;&#x5728;&#x6700;&#x5E95;&#x90E8;&#xFF0C;&#x4FEE;&#x6539;&#x6DFB;&#x52A0;&#x5982;&#x4E0B;&#x4FE1;&#x606F;&#x3002;<br><strong>username</strong>&#xFF1A;GitHub&#x7528;&#x6237;&#x540D;&#x548C;&#x4ED3;&#x5E93;&#x7684;&#x540D;&#x5B57;<br><strong>branch</strong>&#xFF1A;master&#x5206;&#x652F;<br>     </p><figure class="highlight less"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="attribute">deploy</span>:</span><br><span class="line">  <span class="attribute">type</span>: git</span><br><span class="line">  <span class="attribute">repo</span>: git<span class="variable">@github</span>.<span class="attribute">com</span>:username/username.github.io.git</span><br><span class="line">  <span class="attribute">branch</span>: master</span><br></pre></td></tr></tbody></table></figure><p></p>
<p>&#x7136;&#x540E;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x53D1;&#x5E03;&#xFF0C;&#x5982;&#x679C;&#x9047;&#x5230;&#x8F93;&#x5165;&#x5BC6;&#x7801;&#xFF0C;&#x8F93;&#x5165;&#x5728;&#x8BBE;&#x7F6E;SSH&#x5BC6;&#x94A5;&#x65F6;&#x7684;passphrase&#x5BC6;&#x7801;&#x5373;&#x53EF;&#xFF1A;<br>    </p><figure class="highlight 1c"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">// &#x6E05;&#x9664;&#x7F13;&#x5B58;&#xFF0C;&#x751F;&#x6210;&#x9759;&#x6001;&#x7F51;&#x9875;&#xFF0C;&#x90E8;&#x7F72;</span></span><br><span class="line">$ hexo clean <span class="meta">&amp;&amp; hexo g &amp;&amp; hexo d</span></span><br></pre></td></tr></tbody></table></figure><p></p>
<p>&#x53D1;&#x5E03;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x6D4F;&#x89C8;&#x5668;&#x6253;&#x5F00;<a href="http://username.github.io" target="_blank" rel="noopener">http://username.github.io</a> &#xFF0C;&#x5176;&#x4ED6;&#x4EBA;&#x5C31;&#x53EF;&#x4EE5;&#x7ED9;&#x4F60;&#x7684;&#x535A;&#x5BA2;&#x70B9;&#x8D5E;&#xFF01;</p>
<p><strong>&#x9047;&#x5230;&#x7684;&#x5751;&#xFF1A;</strong></p>
<ul>
<li>&#x51FA;&#x73B0;<code>ERROR Deployer not found: git</code>&#xFF0C;&#x5219;&#x6267;&#x884C;&#x547D;&#x4EE4;<code>npm install hexo-deployer-git --save</code>&#xFF0C;&#x91CD;&#x65B0;&#x90E8;&#x7F72;</li>
<li>&#x957F;&#x65F6;&#x95F4;&#x672A;&#x80FD;&#x90E8;&#x7F72;&#x6210;&#x529F;&#xFF0C;&#x53EF;&#x80FD;&#x8D85;&#x65F6;&#xFF0C;&#x5EFA;&#x8BAE;&#x4F7F;&#x7528;&#x4EE3;&#x7406;&#x8FDE;&#x63A5;</li>
<li>&#x672A;&#x8BC6;&#x522B;&#x5730;&#x5740;&#x91CC;&#x7684;&#x8D26;&#x6237;&#xFF0C;<span id="inline-blue">&#x7AD9;&#x70B9;&#x914D;&#x7F6E;&#x6587;&#x4EF6;</span>&#x91CC;&#x4E0A;&#x9762;&#x7684;deploy&#x4FE1;&#x606F;&#x4E0D;&#x5BF9;</li>
<li>&#x6CA1;&#x6709;&#x6743;&#x9650;&#xFF0C;&#x9700;&#x8981;&#x751F;&#x6210;SSH&#x5BC6;&#x94A5;&#x6DFB;&#x52A0;&#x5230;<code>GitHub Deploy Keys</code></li>
</ul>
<h1 id="&#x56FE;&#x5E8A;"><a href="#&#x56FE;&#x5E8A;" class="headerlink" title="&#x56FE;&#x5E8A;"></a>&#x56FE;&#x5E8A;</h1><ul>
<li>&#x5199;&#x535A;&#x5BA2;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;&#x5F88;&#x591A;&#x5730;&#x65B9;&#x9700;&#x8981;&#x7528;&#x5230;&#x56FE;&#x7247;&#xFF0C;&#x56FE;&#x7247;&#x867D;&#x7136;&#x5360;&#x7528;&#x7A7A;&#x95F4;&#x5E76;&#x4E0D;&#x5927;&#xFF0C;&#x53EF;&#x662F;&#x79EF;&#x5C11;&#x6210;&#x591A;&#xFF0C;<code>GitHub Pages</code>&#x81EA;&#x5E26;&#x7A7A;&#x95F4;&#x53EA;&#x6709;300M&#xFF0C;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5C06;&#x56FE;&#x7247;&#x5B58;&#x653E;&#x5230;<a href="http://www.qiniu.com/" target="_blank" rel="noopener">&#x4E03;&#x725B;&#x4E91;</a>&#x4E0A;&#xFF0C;&#x901A;&#x8FC7;&#x5916;&#x94FE;&#x8BBF;&#x95EE;&#x56FE;&#x7247;&#x3002;<a href="http://www.qiniu.com/" target="_blank" rel="noopener">&#x4E03;&#x725B;&#x4E91;</a>&#x50A8;&#x5B58;&#x63D0;&#x4F9B;10G&#x7684;&#x514D;&#x8D39;&#x7A7A;&#x95F4;,&#x4EE5;&#x53CA;&#x6BCF;&#x6708;10G&#x7684;&#x6D41;&#x91CF;&#xFF1B;&#x8FD8;&#x6709;&#x5404;&#x79CD;&#x56FE;&#x5F62;&#x5904;&#x7406;&#x529F;&#x80FD;&#x3001;&#x7F29;&#x7565;&#x56FE;&#x7B49;&#x529F;&#x80FD;&#x3002;</li>
<li>&#x6CE8;&#x518C;<a href="https://portal.qiniu.com/signin" target="_blank" rel="noopener">&#x4E03;&#x725B;</a>&#x8D26;&#x53F7;&#xFF0C;&#x8FC7;&#x7A0B;&#x6BD4;&#x8F83;&#x7B80;&#x5355;</li>
<li>&#x8FDB;&#x5165;&#x8D44;&#x6E90;&#x4E3B;&#x9875;-&gt;&#x6DFB;&#x52A0;&#x8D44;&#x6E90;-&gt;<code>&#x6DFB;&#x52A0;&#x5BF9;&#x8C61;&#x5B58;&#x50A8;</code><br><img src="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E5%AF%B9%E8%B1%A1%E5%AD%98%E5%82%A8%E5%88%9B%E5%BB%BA.png" alt="&#x6DFB;&#x52A0;&#x5BF9;&#x8C61;&#x5B58;&#x50A8;" title="&#x6DFB;&#x52A0;&#x5BF9;&#x8C61;&#x5B58;&#x50A8;"></li>
<li>&#x8FDB;&#x5165;&#x5B58;&#x50A8;&#x7A7A;&#x95F4;-&gt;&#x5185;&#x5BB9;&#x7BA1;&#x7406;-&gt;<code>&#x4E0A;&#x4F20;&#x56FE;&#x7247;</code><br><img src="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E4%B8%8A%E4%BC%A0%E5%9B%BE%E7%89%87.png" alt="&#x4E03;&#x725B;&#x4E0A;&#x4F20;&#x56FE;&#x7247;" title="&#x4E0A;&#x4F20;&#x56FE;&#x7247;"></li>
<li>&#x9009;&#x62E9;&#x6587;&#x4EF6;&#xFF0C;&#x4E0A;&#x4F20;&#x6210;&#x529F;-&gt;&#x5173;&#x95ED;&#xFF0C;&#x8FD4;&#x56DE;&#x4E0A;&#x4E00;&#x7EA7;-&gt;<code>&#x590D;&#x5236;&#x5916;&#x94FE;</code>&#xFF0C;&#x5373;&#x53EF;&#x5F15;&#x7528;&#x56FE;&#x7247;<br><img src="http://cdn.tiimor.cn/images/%E4%B8%83%E7%89%9B%E5%BC%95%E7%94%A8%E5%9B%BE%E7%89%87%E5%A4%96%E9%93%BE.png" alt="&#x5F15;&#x7528;&#x56FE;&#x7247;" title="&#x5F15;&#x7528;&#x56FE;&#x7247;"></li>
</ul>
<h1 id="&#x8865;&#x5145;"><a href="#&#x8865;&#x5145;" class="headerlink" title="&#x8865;&#x5145;"></a>&#x8865;&#x5145;</h1><ul>
<li><p>&#x4E0D;&#x540C;&#x7535;&#x8111;&#x5199;blog<br>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x5C06;&#x7F51;&#x9875;&#x6E90;&#x7801;&#x5B58;&#x653E;&#x5728;GitHub&#x4E0A;&#xFF0C;&#x65B0;&#x5EFA;&#x4ED3;&#x5E93;&#x4FDD;&#x5B58;&#xFF0C;&#x6216;&#x8005;&#x4F7F;&#x7528;username.github.io&#x521B;&#x5EFA;&#x5206;&#x652F;&#x4FDD;&#x5B58;&#xFF1B;&#x5982;&#x679C;&#x4E0D;&#x60F3;&#x516C;&#x5E03;&#x535A;&#x5BA2;&#x6E90;&#x6587;&#x4EF6;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;GitHub&#x7684;private&#x4ED3;&#x5E93;&#xFF08;&#x4ED8;&#x8D39;&#xFF09;&#x6216;&#x8005;&#x5176;&#x4ED6;&#x65B9;&#x5F0F;&#x5982; <strong><a href="https://git.oschina.net/" target="_blank" rel="noopener">&#x7801;&#x4E91;</a></strong> &#x4E0A;&#x7684;private&#x4ED3;&#x5E93;&#xFF08;&#x514D;&#x8D39;&#xFF09;&#x3001;<strong><a href="https://coding.net" target="_blank" rel="noopener">coding</a></strong>&#x7B49;&#x5907;&#x4EFD;&#xFF1B;&#x540C;&#x7406;&#xFF0C;<a href="https://git.oschina.net/" target="_blank" rel="noopener">&#x7801;&#x4E91;</a>&#x3001;<a href="https://coding.net" target="_blank" rel="noopener">coding</a>&#x4E0A;&#x4E5F;&#x53EF;&#x4EE5;&#x642D;&#x5EFA;&#x4E2A;&#x4EBA;&#x535A;&#x5BA2;&#xFF0C;&#x6B65;&#x9AA4;&#x7C7B;&#x4F3C;&#x3002;<br>&#x5728;&#x65B0;&#x7535;&#x8111;&#x4E0A;&#x65F6;&#xFF0C;&#x5BF9;&#x4E8E;&#x7F51;&#x7AD9;&#x6E90;&#x7801;&#x5728;GitHub&#x4E0A;&#xFF0C;clone&#x5DE5;&#x7A0B;&#x5230;&#x672C;&#x5730;&#xFF0C;&#x5B89;&#x88C5;&#x76F8;&#x5E94;&#x7684;&#x5DE5;&#x5177;Git&#x3001;Nodejs&#x3001;Hexo&#xFF0C;&#x751F;&#x6210;SSH&#x5BC6;&#x94A5;&#xFF0C;&#x5141;&#x8BB8;&#x8BBF;&#x95EE;&#x6743;&#x9650;&#xFF0C;&#x6267;&#x884C;&#x547D;&#x4EE4;&#x521D;&#x59CB;&#x5316;&#x73AF;&#x5883;&#x4E4B;&#x540E;&#xFF0C;&#x5C31;&#x53EF;&#x4EE5;&#x7EE7;&#x7EED;&#x5199;&#x535A;&#x5BA2;&#x3002;</p>
  <figure class="highlight cmake"><table><tbody><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">// &#x4E0D;&#x9700;&#x8981;hexo init</span><br><span class="line">$ npm <span class="keyword">install</span> -g hexo-cli			<span class="comment"># &#x5B89;&#x88C5;hexo</span></span><br><span class="line">$ npm <span class="keyword">install</span>					<span class="comment"># &#x5B89;&#x88C5;&#x4F9D;&#x8D56;&#x5305;</span></span><br><span class="line">$ npm <span class="keyword">install</span> hexo-deployer-git			<span class="comment"># &#x7528;git&#x90E8;&#x7F72;&#x63D2;&#x4EF6;</span></span><br><span class="line">$ npm <span class="keyword">install</span> hexo-generator-feed --save	<span class="comment"># RSS&#x63D2;&#x4EF6;</span></span><br></pre></td></tr></tbody></table></figure>
</li>
<li><p>&#x7ED1;&#x5B9A;&#x57DF;&#x540D;<br>&#x5728;<a href="https://www.aliyun.com" target="_blank" rel="noopener">&#x963F;&#x91CC;&#x4E91;</a>&#x7684;<a href="https://wanwang.aliyun.com/domain/?spm=5176.8142029.388261.136.rE231e" target="_blank" rel="noopener">&#x4E07;&#x7F51;</a>&#x4E0A;&#x8D2D;&#x4E70;&#x57DF;&#x540D;&#xFF0C;&#x6839;&#x636E;&#x9700;&#x6C42;&#x9009;&#x62E9;&#x57DF;&#x540D;&#xFF0C;&#x6211;&#x5728;&#x963F;&#x91CC;&#x4E91;&#x4E0A;&#x8D2D;&#x4E70;&#x7684;&#x662F;<code>.cn</code>&#x57DF;&#x540D;&#xFF1B;&#x8D2D;&#x4E70;&#x6210;&#x529F;&#x540E;&#xFF0C;&#x51C6;&#x5907;&#x6DFB;&#x52A0;&#x57DF;&#x540D;&#x89E3;&#x6790;&#xFF0C;&#x4F7F;&#x7528;cmd&#x547D;&#x4EE4;<code>ping username.github.io</code>&#xFF0C;&#x8BB0;&#x5F55;&#x7ED3;&#x679C;&#x663E;&#x793A;&#x7684;ip&#x5730;&#x5740;&#xFF0C;&#x5728;&#x4E07;&#x7F51;&#x4E0A;&#x6DFB;&#x52A0;&#x89E3;&#x6790;&#xFF0C;&#x8FDB;&#x5165;&#x65B0;&#x624B;&#x5F15;&#x5BFC;&#x8BBE;&#x7F6E;&#xFF0C;&#x8BBE;&#x7F6E;&#x7F51;&#x7AD9;&#x89E3;&#x6790;&#xFF0C;&#x8F93;&#x5165;&#x8D2D;&#x4E70;&#x7684;&#x57DF;&#x540D;&#x548C;&#x521A;&#x521A;&#x8BB0;&#x5F55;&#x7684;ip&#xFF0C;&#x4F1A;&#x81EA;&#x52A8;&#x6DFB;&#x52A0;&#x4E24;&#x4E2A;A&#x7C7B;&#x5730;&#x5740;&#xFF0C;&#x6216;&#x8005;&#x624B;&#x52A8;&#x6DFB;&#x52A0;&#x4E24;&#x4E2A;A&#x7C7B;&#x5730;&#x5740;&#xFF1B;&#x6B64;&#x65F6;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x8F93;&#x5165;&#x57DF;&#x540D;&#x4F1A;&#x51FA;&#x73B0;404&#xFF0C;&#x56E0;&#x4E3A;&#x8FD8;&#x672A;&#x7ED1;&#x5B9A;<code>GitHub Pages</code>&#xFF0C;&#x8FDB;&#x5165;<code>username.github.io</code>&#x5DE5;&#x7A0B;&#xFF0C;&#x6DFB;&#x52A0;&#x6587;&#x4EF6;CNAME&#xFF0C;&#x586B;&#x5199;&#x8D2D;&#x4E70;&#x7684;&#x57DF;&#x540D;&#x4FDD;&#x5B58;&#xFF0C;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x8F93;&#x5165;&#x57DF;&#x540D;&#x5373;&#x53EF;&#x8BBF;&#x95EE;&#x4E2A;&#x4EBA;&#x535A;&#x5BA2;&#x7F51;&#x7AD9;&#x3002;<br><strong>&#x6CE8;&#x610F;</strong>&#xFF1A;&#x6BCF;&#x6B21;&#x53D1;&#x5E03;&#x7F51;&#x7AD9;&#x4F1A;&#x6E05;&#x9664;CNAME&#x6587;&#x4EF6;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;CNAME&#x6587;&#x4EF6;&#x653E;&#x7F6E;&#x4E8E;<code>&#x7AD9;&#x70B9;&#x76EE;&#x5F55;\source\</code>&#x76EE;&#x5F55;&#x4E0B;&#x53D1;&#x5E03;&#xFF0C;&#x5219;&#x4E0D;&#x4F1A;&#x6E05;&#x9664;CNAME&#x6587;&#x4EF6;<br><img src="http://cdn.tiimor.cn/images/cmd%E7%9A%84ping%E5%91%BD%E4%BB%A4.png" alt="ping&#x547D;&#x4EE4;" title="ping&#x547D;&#x4EE4;"><br><img src="http://cdn.tiimor.cn/images/%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90.png" alt="&#x57DF;&#x540D;&#x89E3;&#x6790;" title="&#x6DFB;&#x52A0;&#x89E3;&#x6790;"></p>
</li>
</ul>
<p><strong>Enjoy&#xFF01;</strong></p>
<!-- 工具安装 -->
<!-- GitHub项目创建 -->
<!-- 博客 -->
<!-- 图床 -->
<!-- 不同电脑写blog -->
<!-- 绑定域名 -->
<script>
        document.querySelectorAll('.github-emoji')
          .forEach(el => {
            if (!el.dataset.src) { return; }
            const img = document.createElement('img');
            img.style = 'display:none !important;';
            img.src = el.dataset.src;
            img.addEventListener('error', () => {
              img.remove();
              el.style.color = 'inherit';
              el.style.backgroundImage = 'none';
              el.style.background = 'none';
            });
            img.addEventListener('load', () => {
              img.remove();
            });
            document.body.appendChild(img);
          });
      </script>
      
    </div>
    
    
    

    

    
      <div>
        <div style="padding: 10px 0; margin: 20px auto; width: 90%; text-align: center;">
  <div>谢谢老板，请尽情用红包来蹂躏我吧！！！</div>
  <button id="rewardButton" disable="enable" onclick="var qr = document.getElementById('QR'); if (qr.style.display === 'none') {qr.style.display='block';} else {qr.style.display='none'}">
    <span>赏</span>
  </button>
  <div id="QR" style="display: none;">

    
      <div id="wechat" style="display: inline-block">
        <img id="wechat_qr" src="/uploads/wechatpay.jpg" alt="Tiimor 微信打赏">
        <p>微信打赏</p>
      </div>
    

    
      <div id="alipay" style="display: inline-block">
        <img id="alipay_qr" src="/uploads/alipay.jpg" alt="Tiimor 支付宝打赏">
        <p>支付宝打赏</p>
      </div>
    

    

  </div>
</div>

      </div>
    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <!-- modify by zhangwei -->
            <!-- 文章底部标签图标 -->
            <a href="/tags/GitHub/" rel="tag"><i class="menu-item-icon fa fa-tag fa-fw"></i>GitHub</a>
          
            <!-- modify by zhangwei -->
            <!-- 文章底部标签图标 -->
            <a href="/tags/Hexo/" rel="tag"><i class="menu-item-icon fa fa-tag fa-fw"></i>Hexo</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/HelloWorld/" rel="next" title="HelloWorld">
                <i class="fa fa-chevron-left"></i> HelloWorld
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/专治AndroidStudio中Gradle的疑难杂症/" rel="prev" title="专治AndroidStudio中Gradle疑难杂症">
                专治AndroidStudio中Gradle疑难杂症 <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      
        <div id="gitment-container"></div>
      
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/uploads/avatar.jpg" alt="Tiimor">
            
              <p class="site-author-name" itemprop="name">Tiimor</p>
              <p class="site-description motion-element" itemprop="description">安静地做一只攻城狮。</p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/archives/">
              
                  <span class="site-state-item-count">41</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/categories/index.html">
                  <span class="site-state-item-count">6</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/tags/index.html">
                  <span class="site-state-item-count">56</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          
            <div class="feed-link motion-element">
              <a href="/atom.xml" rel="alternate">
                <i class="fa fa-rss"></i>
                RSS
              </a>
            </div>
          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/VeiZhang" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="http://www.weibo.com/tiimor" target="_blank" title="微博">
                      
                        <i class="fa fa-fw fa-weibo"></i>微博</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://juejin.im/user/589972d0570c3500624fd791" target="_blank" title="掘金">
                      
                        <i class="fa fa-fw fa-anchor"></i>掘金</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="http://www.jianshu.com/u/93b886580243" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-book"></i>简书</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="http://wpa.qq.com/msgrd?v=3&uin=690393541&site=qq&menu=yes" target="_blank" title="QQ">
                      
                        <i class="fa fa-fw fa-qq"></i>QQ</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:tiimor@qq.com" target="_blank" title="邮箱">
                      
                        <i class="fa fa-fw fa-envelope"></i>邮箱</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#工具安装"><span class="nav-number">1.</span> <span class="nav-text">工具安装</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#Git"><span class="nav-number">1.1.</span> <span class="nav-text">Git</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Nodejs"><span class="nav-number">1.2.</span> <span class="nav-text">Nodejs</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#Hexo"><span class="nav-number">1.3.</span> <span class="nav-text">Hexo</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#GitHub工程创建"><span class="nav-number">2.</span> <span class="nav-text">GitHub工程创建</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#博客"><span class="nav-number">3.</span> <span class="nav-text">博客</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#博客工程"><span class="nav-number">3.1.</span> <span class="nav-text">博客工程</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#主题"><span class="nav-number">3.2.</span> <span class="nav-text">主题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#部署"><span class="nav-number">3.3.</span> <span class="nav-text">部署</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#图床"><span class="nav-number">4.</span> <span class="nav-text">图床</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#补充"><span class="nav-number">5.</span> <span class="nav-text">补充</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; 2017 &mdash; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Tiimor</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Pisces</a></div>




        
<div class="busuanzi-count">
  <!-- modify by zhangwei -->
  <!-- 修改不蒜子统计脚本 -->
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>

  
    <span class="site-uv">
      <i class="fa fa-user"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
      
    </span>
  

  
    <span class="site-pv">
      <i class="fa fa-eye"></i>
      <span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
      
    </span>
  
</div>



<script>
  	var _mtac = {};
  	(function() {
  		var mta = document.createElement("script");
  		mta.src = "https://pingjs.qq.com/h5/stats.js?v2.0.4";
  		mta.setAttribute("name", "MTAH5");
  		mta.setAttribute("sid", "500425805");

  		var s = document.getElementsByTagName("script")[0];
  		s.parentNode.insertBefore(mta, s);
  	})();
</script>


  <script type="text/javascript">
    (function() {
      var hm = document.createElement("script");
      hm.src = "//tajs.qq.com/stats?sId=61441764";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
          <span id="scrollpercent"><span>0</span>%</span>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
</script>









  


  











  
  
    <script type="text/javascript" src="/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  

  
  
    <script type="text/javascript" src="/lib/canvas-nest/canvas-nest.min.js"></script>
  


  


  <script type="text/javascript" src="/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  







<!-- LOCAL: You can save these files to your site and update links -->
    
        
        <link rel="stylesheet" href="https://aimingoo.github.io/gitmint/style/default.css">
        <script src="https://aimingoo.github.io/gitmint/dist/gitmint.browser.js"></script>
    
<!-- END LOCAL -->

    

    
      <script type="text/javascript">
      function renderGitment(){
        var gitment = new Gitmint({
            <!-- modify by zhangwei -->
            <!-- 修复gitment评论页初始化错误@tiimor -->
            id: '1489842659000', 
            owner: 'VeiZhang',
            repo: 'veizhang.github.io',
            
            lang: "" || navigator.language || navigator.systemLanguage || navigator.userLanguage,
            
            oauth: {
            
            
                client_secret: '9919bc61413a89ea3eb156910d282e3103093e32',
            
                client_id: 'f08924ca58e61d6f51f4'
            }});
        gitment.render('gitment-container');
      }

      
      renderGitment();
      
      </script>
    







  




  
  
  
  <link rel="stylesheet" href="/lib/algolia-instant-search/instantsearch.min.css">

  
  
  <script src="/lib/algolia-instant-search/instantsearch.min.js"></script>
  

  <script src="/js/src/algolia-search.js?v=5.1.4"></script>



  

  
  <script src="https://cdn1.lncld.net/static/js/av-core-mini-0.6.4.js"></script>
  <script>AV.initialize("7aBs9I9Y3PjoN6ueX5J3AYQW-gzGzoHsz", "kboycyzaPNAYcUW8AkF3edeW");</script>
  <script>
    function showTime(Counter) {
      var query = new AV.Query(Counter);
      var entries = [];
      var $visitors = $(".leancloud_visitors");

      $visitors.each(function () {
        entries.push( $(this).attr("id").trim() );
      });

      query.containedIn('url', entries);
      query.find()
        .done(function (results) {
          var COUNT_CONTAINER_REF = '.leancloud-visitors-count';

          if (results.length === 0) {
            $visitors.find(COUNT_CONTAINER_REF).text(0);
            return;
          }

          for (var i = 0; i < results.length; i++) {
            var item = results[i];
            var url = item.get('url');
            var time = item.get('time');
            var element = document.getElementById(url);

            $(element).find(COUNT_CONTAINER_REF).text(time);
          }
          for(var i = 0; i < entries.length; i++) {
            var url = entries[i];
            var element = document.getElementById(url);
            var countSpan = $(element).find(COUNT_CONTAINER_REF);
            if( countSpan.text() == '') {
              countSpan.text(0);
            }
          }
        })
        .fail(function (object, error) {
          console.log("Error: " + error.code + " " + error.message);
        });
    }

    function addCount(Counter) {
      var $visitors = $(".leancloud_visitors");
      var url = $visitors.attr('id').trim();
      var title = $visitors.attr('data-flag-title').trim();
      var query = new AV.Query(Counter);

      query.equalTo("url", url);
      query.find({
        success: function(results) {
          if (results.length > 0) {
            var counter = results[0];
            counter.fetchWhenSave(true);
            counter.increment("time");
            counter.save(null, {
              success: function(counter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(counter.get('time'));
              },
              error: function(counter, error) {
                console.log('Failed to save Visitor num, with error message: ' + error.message);
              }
            });
          } else {
            var newcounter = new Counter();
            /* Set ACL */
            var acl = new AV.ACL();
            acl.setPublicReadAccess(true);
            acl.setPublicWriteAccess(true);
            newcounter.setACL(acl);
            /* End Set ACL */
            newcounter.set("title", title);
            newcounter.set("url", url);
            newcounter.set("time", 1);
            newcounter.save(null, {
              success: function(newcounter) {
                var $element = $(document.getElementById(url));
                $element.find('.leancloud-visitors-count').text(newcounter.get('time'));
              },
              error: function(newcounter, error) {
                console.log('Failed to create');
              }
            });
          }
        },
        error: function(error) {
          console.log('Error:' + error.code + " " + error.message);
        }
      });
    }

    $(function() {
      var Counter = AV.Object.extend("Counter");
      if ($('.leancloud_visitors').length == 1) {
        addCount(Counter);
      } else if ($('.post-title-link').length > 1) {
        showTime(Counter);
      }
    });
  </script>



  

  
<script>
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';        
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>


  
  

  

  

  

  
  <!-- modify by zhangwei -->
  <!-- 动态时间小人 -->
  <!-- modify by zhangwei -->
<!-- 动态时间小人 -->
<!-- z-index -1 表示在最底层，不能悬浮也不能点击 -->
<!-- z-index auto 可以点击 -->
<!-- z-index 9999 无限大时，总是在最上层，会影响其他悬浮框 -->
<div id="dg" style="z-index: auto; position: fixed ! important; right: 0px; top: 0px;">  
    <table width 100% style="position: absolute; width:260px; right: 0px; top: 0px;">  
		<div>
			<embed wmode="transparent" src="http://cdn.tiimor.cn/images/dynamic_time.swf" quality="high" bgcolor="#ffffff" width="160" height="70" name="honehoneclock" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
		</div>
    </table>  
</div>
  
</body>
</html>
